.class public Lcom/ss/android/socialbase/appdownloader/i;
.super Les/zm0;
.source "DownloadNotificationListener.java"


# instance fields
.field private b:Landroid/content/Context;

.field private c:I

.field private d:Ljava/lang/String;

.field private e:Ljava/lang/String;

.field private f:Ljava/lang/String;

.field private g:Ljava/lang/String;

.field private h:Lcom/ss/android/socialbase/downloader/notification/a;


# direct methods
.method public constructor <init>(Landroid/content/Context;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/zm0;-><init>()V

    if-eqz p1, :cond_0

    .line 2
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lcom/ss/android/socialbase/appdownloader/i;->b:Landroid/content/Context;

    goto :goto_0

    .line 3
    :cond_0
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->b()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lcom/ss/android/socialbase/appdownloader/i;->b:Landroid/content/Context;

    .line 4
    :goto_0
    iput p2, p0, Lcom/ss/android/socialbase/appdownloader/i;->c:I

    .line 5
    iput-object p3, p0, Lcom/ss/android/socialbase/appdownloader/i;->d:Ljava/lang/String;

    .line 6
    iput-object p4, p0, Lcom/ss/android/socialbase/appdownloader/i;->e:Ljava/lang/String;

    .line 7
    iput-object p5, p0, Lcom/ss/android/socialbase/appdownloader/i;->f:Ljava/lang/String;

    .line 8
    iput-object p6, p0, Lcom/ss/android/socialbase/appdownloader/i;->g:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Lcom/ss/android/socialbase/downloader/notification/a;)V
    .locals 1

    .line 9
    invoke-direct {p0}, Les/zm0;-><init>()V

    .line 10
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->b()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/ss/android/socialbase/appdownloader/i;->b:Landroid/content/Context;

    .line 11
    iput-object p1, p0, Lcom/ss/android/socialbase/appdownloader/i;->h:Lcom/ss/android/socialbase/downloader/notification/a;

    return-void
.end method

.method static synthetic a(Lcom/ss/android/socialbase/appdownloader/i;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/ss/android/socialbase/appdownloader/i;->b:Landroid/content/Context;

    return-object p0
.end method


# virtual methods
.method public a()Lcom/ss/android/socialbase/downloader/notification/a;
    .locals 8

    .line 2
    iget-object v0, p0, Lcom/ss/android/socialbase/appdownloader/i;->h:Lcom/ss/android/socialbase/downloader/notification/a;

    if-nez v0, :cond_0

    iget-object v2, p0, Lcom/ss/android/socialbase/appdownloader/i;->b:Landroid/content/Context;

    if-eqz v2, :cond_0

    .line 3
    new-instance v0, Lcom/ss/android/socialbase/appdownloader/f;

    iget v3, p0, Lcom/ss/android/socialbase/appdownloader/i;->c:I

    iget-object v4, p0, Lcom/ss/android/socialbase/appdownloader/i;->d:Ljava/lang/String;

    iget-object v5, p0, Lcom/ss/android/socialbase/appdownloader/i;->e:Ljava/lang/String;

    iget-object v6, p0, Lcom/ss/android/socialbase/appdownloader/i;->f:Ljava/lang/String;

    iget-object v7, p0, Lcom/ss/android/socialbase/appdownloader/i;->g:Ljava/lang/String;

    move-object v1, v0

    invoke-direct/range {v1 .. v7}, Lcom/ss/android/socialbase/appdownloader/f;-><init>(Landroid/content/Context;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-object v0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/ss/android/socialbase/appdownloader/i;->h:Lcom/ss/android/socialbase/downloader/notification/a;

    return-object v0
.end method

.method public a(Les/zn0;)V
    .locals 1

    if-eqz p1, :cond_1

    .line 5
    invoke-virtual {p1}, Les/zn0;->f1()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/appdownloader/d;->c(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 6
    :cond_0
    invoke-super {p0, p1}, Les/zm0;->a(Les/zn0;)V

    :cond_1
    :goto_0
    return-void
.end method

.method public a(Les/zn0;Lcom/ss/android/socialbase/downloader/e/a;)V
    .locals 1

    if-eqz p1, :cond_1

    .line 7
    iget-object v0, p0, Lcom/ss/android/socialbase/appdownloader/i;->b:Landroid/content/Context;

    if-eqz v0, :cond_1

    invoke-virtual {p1}, Les/zn0;->g0()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p1}, Les/zn0;->f1()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/appdownloader/d;->c(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 8
    :cond_0
    invoke-super {p0, p1, p2}, Les/zm0;->a(Les/zn0;Lcom/ss/android/socialbase/downloader/e/a;)V

    :cond_1
    :goto_0
    return-void
.end method

.method public b(Les/zn0;)V
    .locals 1

    if-eqz p1, :cond_1

    .line 1
    invoke-virtual {p1}, Les/zn0;->f1()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/appdownloader/d;->c(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    invoke-super {p0, p1}, Les/zm0;->b(Les/zn0;)V

    :cond_1
    :goto_0
    return-void
.end method

.method public c(Les/zn0;)V
    .locals 1

    if-eqz p1, :cond_1

    .line 1
    invoke-virtual {p1}, Les/zn0;->f1()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/appdownloader/d;->c(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    invoke-super {p0, p1}, Les/zm0;->c(Les/zn0;)V

    :cond_1
    :goto_0
    return-void
.end method

.method public d(Les/zn0;)V
    .locals 1

    if-eqz p1, :cond_1

    .line 1
    invoke-virtual {p1}, Les/zn0;->f1()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/appdownloader/d;->c(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    invoke-super {p0, p1}, Les/zm0;->d(Les/zn0;)V

    :cond_1
    :goto_0
    return-void
.end method

.method public e(Les/zn0;)V
    .locals 4

    if-eqz p1, :cond_6

    .line 1
    iget-object v0, p0, Lcom/ss/android/socialbase/appdownloader/i;->b:Landroid/content/Context;

    if-nez v0, :cond_0

    goto :goto_1

    .line 2
    :cond_0
    invoke-virtual {p1}, Les/zn0;->g0()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p1}, Les/zn0;->f1()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/appdownloader/d;->c(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 3
    invoke-super {p0, p1}, Les/zm0;->e(Les/zn0;)V

    .line 4
    :cond_1
    invoke-virtual {p1}, Les/zn0;->b1()Z

    move-result v0

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eqz v0, :cond_2

    invoke-virtual {p1}, Les/zn0;->c1()Z

    move-result v0

    if-eqz v0, :cond_3

    :cond_2
    invoke-virtual {p1}, Les/zn0;->f1()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/appdownloader/d;->b(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_3

    invoke-virtual {p1}, Les/zn0;->i0()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_3

    invoke-virtual {p1}, Les/zn0;->i0()Ljava/lang/String;

    move-result-object v0

    const-string v3, "application/vnd.android.package-archive"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_4

    .line 5
    :cond_3
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v0

    invoke-static {v0}, Les/jo0;->a(I)Les/jo0;

    move-result-object v0

    const-string v3, "auto_install_when_resume"

    invoke-virtual {v0, v3, v2}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v0

    if-eq v0, v1, :cond_4

    const/4 v1, 0x0

    :cond_4
    if-eqz v1, :cond_5

    .line 6
    iget-object v0, p0, Lcom/ss/android/socialbase/appdownloader/i;->b:Landroid/content/Context;

    .line 7
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v1

    invoke-static {v0, v1, v2}, Lcom/ss/android/socialbase/appdownloader/d;->a(Landroid/content/Context;IZ)I

    move-result v0

    goto :goto_0

    :cond_5
    const/4 v0, 0x2

    .line 8
    :goto_0
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->q()Ljava/util/concurrent/ExecutorService;

    move-result-object v1

    .line 9
    new-instance v2, Lcom/ss/android/socialbase/appdownloader/i$a;

    invoke-direct {v2, p0, p1, v0}, Lcom/ss/android/socialbase/appdownloader/i$a;-><init>(Lcom/ss/android/socialbase/appdownloader/i;Les/zn0;I)V

    invoke-interface {v1, v2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    :cond_6
    :goto_1
    return-void
.end method
